const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  // 关闭代码检查
  lintOnSave: false,
  //解决跨域问题
  devServer: {
    port: 8081,
    proxy: {
      "/api": {
        target: "http://localhost:8080/",
        // 允许跨域
        changeOrigin: true,
        pathRewrite: {
          "^/api": "",
        },
      },
    },
  },
});
